package com.day13.a00staticdemo;

import java.util.ArrayList;

public class TestDemo {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        Student s1 = new Student("慧慧",20,"萌妹子");
        Student s2 = new Student("爱丽丝",15,"萌妹子");
        Student s3 = new Student("小春",14,"萌妹子");
        list.add(s1);
        list.add(s2);
        list.add(s3);
         int max =GetMax.getMaxAge(list);
        System.out.println(max);
    }
}
